<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>::.::.::  APPMA  ||  Email  ::.::.::</title>

<link href="css/styleinner.css" rel="stylesheet" type="text/css">

<link href="css/css_tab/samples.css" rel="stylesheet" type="text/css">
<link href="css/css_tab/SprySlidingPanels.css" rel="stylesheet" type="text/css">
<link href="css/css_tab/tab_style.css" rel="stylesheet" type="text/css">
<script src="java/SprySlidingPanels.js" type="text/javascript"></script>


<style type="text/css">
<!--

#usefullinks {
	position:absolute;
	width:381px;
	height:94px;
	z-index:1;
	left: 38px;
	top: 30px;
}

#form1 table tr td label #checkbox {
	text-align: right;
}

-->
</style>
</head>
<body style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px;">
<!-- ImageReady Slices (index.psd) -->
<center><div id="Table_01">
	<div id="index-01">
	
	  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="621" height="150">
        <param name="movie" value="flash/title.swf">
        <param name="quality" value="high">
        <embed src="flash/title.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="621" height="150"></embed>
      </object>
    </div>
	<div id="index-02">
	
		  <div id="contactlink" onClick="MM_goToURL('parent','contact.php');return document.MM_returnValue"></div>
	  <div id="feedback" onClick="MM_goToURL('parent','feedback.php');return document.MM_returnValue"></div>
	  <div id="sitemap" onClick="MM_goToURL('parent','sitemap.php');return document.MM_returnValue"></div>

<?php if(isset($_SESSION['SESS_MEMBER_ID'])) {
	echo '<div id="logout"><a href="logout.php">Logout</a></div>';
	}	  
	 ?> 	
	
	  <div id="search">
	  <form action="search.php" method="get">
	  <td valign="middle" height="30px">
	  <input type="text" name="query" id="query" height="20px" size="35" action="include/js_suggest/suggest.php"></td>
	  <input type="text" name="search" value="1" style="display:none;">
	  <td valign="middle" height="30px">
	  <input type="submit" class="searchbtn" value=""></td>
	  </form>
	  </div>
	
	
	
	</div>
	<div id="index-03">
		
		
				<?php
				$File = "nav.html";
				$fh = fopen($File, 'r');
				$List = fread($fh, filesize($File));
				fclose($fh);
				echo $List;
			?> 
		
		
	</div>
	<div id="index-04">
    <?php
				$File = "menuleft.html";
				$fh = fopen($File, 'r');
				$List = fread($fh, filesize($File));
				fclose($fh);
				echo $List;
			?> 
		
    
    
   
    </div>
	<div id="index-09">
	  <div id="platinum">

<?php
$con = mysql_connect("localhost","appma" ,"database");
mysql_select_db("162_appma", $con);
$sql="SELECT link FROM sponsor WHERE sponsor='platinum'";
if (!$sql)
	  {
	  die('Could Not Complete Please Try Again Later: ' );
	  }
$result=mysql_query($sql);
$row = mysql_fetch_array($result);
?>
<a href="<?php echo $row['link']; ?>" target="_blank">
<img src="uploader/sponsor/platinum.jpg"></a>


	  </div>
	</div>
	<div id="index-13">
	  <div id="gold">
	  
	<?php
$con = mysql_connect("localhost","appma" ,"database");
mysql_select_db("162_appma", $con);
$sql="SELECT link FROM sponsor WHERE sponsor='gold'";
if (!$sql)
	  {
	  die('Could Not Complete Please Try Again Later: ' );
	  }
$result=mysql_query($sql);
$row = mysql_fetch_array($result);
?>
<a href="<?php echo $row['link']; ?>" target="_blank">
<img src="uploader/sponsor/gold.jpg"></a>
	  
	  </div>
    
    </div>
	<div id="index-16">
	  <div id="contact">
	    <p>HEAD OFFICE: Room #104,Azeem Chamber,<br>
		Hasan Ali Effendi Road, Karachi-74200.<br>
	      Phone: 021-32621041,<br>
	      Fax: 021-32210385,<br>
	      Email: paperassociation@homail.com<br>
        URL: www.appma.com.pk</p>
      </div>

	</div>
    <div id="mid">
    <div id="text">
	
	

<?php


session_start();
if($_POST['code'] != $_SESSION['rand_code']) {
		echo "Please go back and verify that you typed in the correct code.";
		exit();
		}



$regno=$_POST["regno"];
$name=$_POST["name"];
$status=$_POST["status"];
$cnic=$_POST["cnic"];
$firmname=$_POST["firmname"];
$established=$_POST["established"];
$headoffice=$_POST["headoffice"];
$phno=$_POST["phno"];
$fax=$_POST["fax"];
$mobile=$_POST["mobile"];
$phres=$_POST["phres"];
$email=$_POST["email"];
$catogary=$_POST["catogary"];
$ntn=$_POST["ntn"];
$streg=$_POST["streg"];


$subject="Appma Member Request";


$message="

  <table cellpadding=0 cellspacing=0>
    <tr> 
      <td valign=top>
	  </td>
      <div> 
        <div align=center><font size=+2>Member Registration Form</font></div>
      </div>
		
      <td><div> 
         
          
            
              <table  border=0 align=left cellpadding=1 cellspacing=1>
                <tbody valign=top><tr>
                  <td><div><font size=2>Regestration Number</font></div></td>
                  <td>".$regno."</td>
                  
                  <td><div><font size=2>Person Name</font></div></td>
                  <td>".$name."</td>
                  </tr>
				  
                  <tr> 
                    <td><div><font size=2>Designation</font></div></td>
                    <td>".$status."</td>
                    <td><div><font size=2>C-NIC Number </font></div></td>
                    <td>".$cnic."</td>
                  </tr>
				                    <tr> 
                    <td><div><font size=2>Name of Firm </font></div></td>
                    <td>".$firmname."</td>

                    <td><div><font size=2>When Established </font></div></td>
                    <td>".$established."</td>
                  </tr>
                  <tr> 
                    <td><div><font size=2>Office Address</font></div></td>
                    <td>".$headoffice."</td>

                    <td><div><font size=2>Telephone #</font>  </div></td>
                    <td>".$phno."</td>
                  </tr>
                  <tr> 
                    <td><div><font size=2>Fax # </font></div></td>
                    <td>".$fax."</td>

                    <td><div><font size=2>Mobile # </font></div></td>
                    <td>".$mobile."</td>
                  </tr>
                  <tr> 
                    <td><div><font size=2>Telephone Res </font></div></td>
                    <td>".$phres."</td>

                    <td><div><font size=2>E-Mail</font></div></td>
                    <td>".$email."</td>
                  </tr>
                  <tr> 
                    <td><div><font size=2>Catogary of Business </font></div></td>
                    <td>".$catogary."</td>

                    <td><div><font size=2>National Tax No. </font></div></td>
                    <td>".$ntn."</td>
                  </tr>
                  <tr> 
                    <td><div><font size=2>Sales Tax Reg. No. </font></div></td>
                    <td>".$streg."</td>

                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                  </tr>

                  <tr> 
                    <td></td>
                  </tr>
                  <tr> 
                    <td><div> 
                       
                      </div></td>
                  </tr>
                </tbody>
              </table>
            
          
          </div></td>


    </tr>
	
    <tr>

	  <td>

	  </td>
    </tr>
  </table>


";




?>

<?php

// multiple recipients
$to  = 'mobashir_s@yahoo.com'; 


// To send HTML mail, the Content-type header must be set

$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

// Additional headers

$headers .= 'To: Mobashir <mobashir_s@yahoo.com>' . "\r\n";
$headers .= 'From: <mobashir_s@yahoo.com>' . "\r\n";
$headers .= 'Cc: email@yaho.com' . "\r\n";
$headers .= 'Bcc: email@yaho.com' . "\r\n";

// Mail it

$a= mail($to, $subject, $message, $headers);

if(!$a)
{
echo "An Error Occured";
}

else
{

echo 'Thank You!!';
}
?>
	
	
	

</div>
	<div id="bottom">
		<img src="images/index_18.jpg" width="1003" height="42" alt="">	</div>
</div>
</div>
</center>
<!-- End ImageReady Slices -->
</body>
</html>

